package Chapter5;

public class Example03 {
	public static void main(String[] args) {
		MyThread2 mythread=new MyThread2();
		Thread thread=new Thread(mythread);
		thread.start();
		while (true) {
			System.out.println("main");
		}
	}

}

class MyThread2 implements Runnable{
	public void run() {
		while (true) {
			System.out.println("mythread");
		}
	}
}
